package com.zhangyu.shadow.core.weixin.template;

import com.zhangyu.shadow.core.weixin.BaseWXEntryActivity;
import com.zhangyu.shadow.core.weixin.ShadowWeChat;

/**
 * @author zhangyu
 * @date 2017/10/26
 */

public class WXEntryTemplate extends BaseWXEntryActivity {

    @Override
    protected void onResume() {
        super.onResume();
        //这个activity是默认不会关闭的，把他设置为透明，登录完成就关闭
        finish();
        //不需要动画效果
        overridePendingTransition(0, 0);
    }

    @Override
    protected void onSignInSuccess(String userInfo) {
        ShadowWeChat.getInstance().getSignInCallback().onSignInSuccess(userInfo);
    }
}
